﻿using CommunityToolkit.Mvvm.ComponentModel;

namespace GetStartedApp.ViewModel.Page
{
    public partial class ControlViewModel : ViewModelBase
    {
        public ControlViewModel()
        {
            Foo = new FooViewModel { Name = "测试内容" };
        }

        [ObservableProperty]
        private FooViewModel _foo;
    }

    public partial class FooViewModel : ViewModelBase
    {
        [ObservableProperty]
        private string _name;
    }
}